package com.dgut.sales.dao;

import java.util.List;
import java.util.Map;

import org.springframework.ui.Model;

import com.dgut.sales.bean.Contract;
import com.dgut.sales.bean.Details;
import com.dgut.sales.dynamic.sql.bean.ContractSearch;

public interface ContractDao {
	public Contract getContractById(Integer id); 
	public void update(Contract contract);
	public void delete(Integer id);
	
	public List<Contract> getAllContract();
	public List<Map <String,Details>> getContractDetails(Integer id);
	public String signContract(Integer [] ids, Model model);
	public void addContract(Contract contract);
	public List<Contract> searchContract(ContractSearch contractSearch);
	
}
